/*
 * @Author: Rachel 943701297@qq.com
 * @Date: 2022-08-30 16:32:30
 * @LastEditors: 杨文涓 yangwenjuan_809@163.com
 * @LastEditTime: 2022-10-14 15:43:53
 * @FilePath: \test\vue.config.js
 * @Description: 
 * 
 * Copyright (c) 2022 by Rachel 943701297@qq.com, All Rights Reserved. 
 */
const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  //开启代理服务器(方法一)
  /* devServer: {
    proxy: 'http://localhost:5000'
  } */
  // 开启代理服务器(方法二)
  devServer: {
    proxy: {
      '/students': {
        target: 'http://localhost:5000',
        // ws: true,
        // changeOrigin: true
      },
      '/cars': {
        target: 'http://localhost:5001'
      }
    }
  }
})